﻿#pragma once
#include <cstdlib>
#include "Form4.h"
namespace Nguyen_Thai_Kieu_SAI_GLTest {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::Timers;
	using namespace System::Media;

	/// <summary>
	/// Summary for Form3
	/// </summary>
	public ref class Form3 : public System::Windows::Forms::Form
	{
	public:
		Form3(void)
		{
			InitializeComponent();

			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form3()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::PictureBox^  ga2;
	protected: 
	private: System::Windows::Forms::PictureBox^  ngan2;
	private: System::Windows::Forms::PictureBox^  ga1;
	private: System::Windows::Forms::PictureBox^  vit1;
	private: System::Windows::Forms::PictureBox^  ngan1;
	private: System::Windows::Forms::PictureBox^  vit2;
	private: System::Windows::Forms::PictureBox^  trung1;
	private: System::Windows::Forms::PictureBox^  trung2;
	private: System::Windows::Forms::PictureBox^  trung3;
	private: System::Windows::Forms::PictureBox^  phan1;
	private: System::Windows::Forms::PictureBox^  phan2;
	private: System::Windows::Forms::PictureBox^  phan3;
	private: System::Windows::Forms::PictureBox^  ro;

	private: System::Windows::Forms::Label^  thongbao;
	private: System::Windows::Forms::Timer^  timer1;























	private: System::ComponentModel::IContainer^  components;

	private:
		/// <summary>
		/// Required designer variable.
		static int j, count, count2;
		static int giay = 0;
		static int phut = 0;
		String^ gi;
		String^ ph; 
	private: System::Windows::Forms::Timer^  timer2;
	private: System::Windows::Forms::PictureBox^  Dung;
	private: System::Windows::Forms::PictureBox^  Tiep;
	private: System::Windows::Forms::PictureBox^  Thoat;
	private: AxWMPLib::AxWindowsMediaPlayer^  axWindowsMediaPlayer1;


	private: System::Windows::Forms::Label^  DongHo;


		/// </summary>


#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = (gcnew System::ComponentModel::Container());
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form3::typeid));
			this->ga2 = (gcnew System::Windows::Forms::PictureBox());
			this->ngan2 = (gcnew System::Windows::Forms::PictureBox());
			this->ga1 = (gcnew System::Windows::Forms::PictureBox());
			this->vit1 = (gcnew System::Windows::Forms::PictureBox());
			this->ngan1 = (gcnew System::Windows::Forms::PictureBox());
			this->vit2 = (gcnew System::Windows::Forms::PictureBox());
			this->trung1 = (gcnew System::Windows::Forms::PictureBox());
			this->trung2 = (gcnew System::Windows::Forms::PictureBox());
			this->trung3 = (gcnew System::Windows::Forms::PictureBox());
			this->phan1 = (gcnew System::Windows::Forms::PictureBox());
			this->phan2 = (gcnew System::Windows::Forms::PictureBox());
			this->phan3 = (gcnew System::Windows::Forms::PictureBox());
			this->ro = (gcnew System::Windows::Forms::PictureBox());
			this->thongbao = (gcnew System::Windows::Forms::Label());
			this->timer1 = (gcnew System::Windows::Forms::Timer(this->components));
			this->DongHo = (gcnew System::Windows::Forms::Label());
			this->timer2 = (gcnew System::Windows::Forms::Timer(this->components));
			this->Dung = (gcnew System::Windows::Forms::PictureBox());
			this->Tiep = (gcnew System::Windows::Forms::PictureBox());
			this->Thoat = (gcnew System::Windows::Forms::PictureBox());
			this->axWindowsMediaPlayer1 = (gcnew AxWMPLib::AxWindowsMediaPlayer());
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ga2))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ngan2))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ga1))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->vit1))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ngan1))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->vit2))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trung1))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trung2))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trung3))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->phan1))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->phan2))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->phan3))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ro))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Dung))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Tiep))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Thoat))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->axWindowsMediaPlayer1))->BeginInit();
			this->SuspendLayout();
			// 
			// ga2
			// 
			this->ga2->BackColor = System::Drawing::Color::Transparent;
			this->ga2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ga2.Image")));
			this->ga2->Location = System::Drawing::Point(109, 12);
			this->ga2->Name = L"ga2";
			this->ga2->Size = System::Drawing::Size(83, 91);
			this->ga2->TabIndex = 0;
			this->ga2->TabStop = false;
			this->ga2->Visible = false;
			// 
			// ngan2
			// 
			this->ngan2->BackColor = System::Drawing::Color::Transparent;
			this->ngan2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ngan2.Image")));
			this->ngan2->Location = System::Drawing::Point(221, 12);
			this->ngan2->Name = L"ngan2";
			this->ngan2->Size = System::Drawing::Size(82, 91);
			this->ngan2->TabIndex = 1;
			this->ngan2->TabStop = false;
			this->ngan2->Visible = false;
			// 
			// ga1
			// 
			this->ga1->BackColor = System::Drawing::Color::Transparent;
			this->ga1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ga1.Image")));
			this->ga1->Location = System::Drawing::Point(327, 12);
			this->ga1->Name = L"ga1";
			this->ga1->Size = System::Drawing::Size(84, 91);
			this->ga1->TabIndex = 2;
			this->ga1->TabStop = false;
			// 
			// vit1
			// 
			this->vit1->BackColor = System::Drawing::Color::Transparent;
			this->vit1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"vit1.Image")));
			this->vit1->Location = System::Drawing::Point(442, 12);
			this->vit1->Name = L"vit1";
			this->vit1->Size = System::Drawing::Size(85, 91);
			this->vit1->TabIndex = 3;
			this->vit1->TabStop = false;
			// 
			// ngan1
			// 
			this->ngan1->BackColor = System::Drawing::Color::Transparent;
			this->ngan1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ngan1.Image")));
			this->ngan1->Location = System::Drawing::Point(557, 12);
			this->ngan1->Name = L"ngan1";
			this->ngan1->Size = System::Drawing::Size(84, 91);
			this->ngan1->TabIndex = 4;
			this->ngan1->TabStop = false;
			// 
			// vit2
			// 
			this->vit2->BackColor = System::Drawing::Color::Transparent;
			this->vit2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"vit2.Image")));
			this->vit2->Location = System::Drawing::Point(672, 12);
			this->vit2->Name = L"vit2";
			this->vit2->Size = System::Drawing::Size(84, 91);
			this->vit2->TabIndex = 5;
			this->vit2->TabStop = false;
			this->vit2->Visible = false;
			// 
			// trung1
			// 
			this->trung1->BackColor = System::Drawing::Color::Transparent;
			this->trung1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"trung1.Image")));
			this->trung1->Location = System::Drawing::Point(367, 98);
			this->trung1->Name = L"trung1";
			this->trung1->Size = System::Drawing::Size(44, 50);
			this->trung1->TabIndex = 6;
			this->trung1->TabStop = false;
			this->trung1->Visible = false;
			// 
			// trung2
			// 
			this->trung2->BackColor = System::Drawing::Color::Transparent;
			this->trung2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"trung2.Image")));
			this->trung2->Location = System::Drawing::Point(442, 98);
			this->trung2->Name = L"trung2";
			this->trung2->Size = System::Drawing::Size(44, 50);
			this->trung2->TabIndex = 7;
			this->trung2->TabStop = false;
			this->trung2->Visible = false;
			// 
			// trung3
			// 
			this->trung3->BackColor = System::Drawing::Color::Transparent;
			this->trung3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"trung3.Image")));
			this->trung3->Location = System::Drawing::Point(557, 98);
			this->trung3->Name = L"trung3";
			this->trung3->Size = System::Drawing::Size(44, 50);
			this->trung3->TabIndex = 8;
			this->trung3->TabStop = false;
			this->trung3->Visible = false;
			// 
			// phan1
			// 
			this->phan1->BackColor = System::Drawing::Color::Transparent;
			this->phan1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"phan1.Image")));
			this->phan1->Location = System::Drawing::Point(327, 98);
			this->phan1->Name = L"phan1";
			this->phan1->Size = System::Drawing::Size(44, 45);
			this->phan1->TabIndex = 9;
			this->phan1->TabStop = false;
			this->phan1->Visible = false;
			// 
			// phan2
			// 
			this->phan2->BackColor = System::Drawing::Color::Transparent;
			this->phan2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"phan2.Image")));
			this->phan2->Location = System::Drawing::Point(483, 98);
			this->phan2->Name = L"phan2";
			this->phan2->Size = System::Drawing::Size(44, 45);
			this->phan2->TabIndex = 10;
			this->phan2->TabStop = false;
			this->phan2->Visible = false;
			// 
			// phan3
			// 
			this->phan3->BackColor = System::Drawing::Color::Transparent;
			this->phan3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"phan3.Image")));
			this->phan3->Location = System::Drawing::Point(596, 98);
			this->phan3->Name = L"phan3";
			this->phan3->Size = System::Drawing::Size(45, 45);
			this->phan3->TabIndex = 11;
			this->phan3->TabStop = false;
			this->phan3->Visible = false;
			// 
			// ro
			// 
			this->ro->BackColor = System::Drawing::Color::Transparent;
			this->ro->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ro.Image")));
			this->ro->Location = System::Drawing::Point(427, 443);
			this->ro->Name = L"ro";
			this->ro->Size = System::Drawing::Size(100, 81);
			this->ro->TabIndex = 12;
			this->ro->TabStop = false;
			// 
			// thongbao
			// 
			this->thongbao->AutoSize = true;
			this->thongbao->BackColor = System::Drawing::Color::Transparent;
			this->thongbao->Font = (gcnew System::Drawing::Font(L"Magneto", 18, static_cast<System::Drawing::FontStyle>((System::Drawing::FontStyle::Bold | System::Drawing::FontStyle::Italic)), 
				System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0)));
			this->thongbao->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(0)), static_cast<System::Int32>(static_cast<System::Byte>(0)), 
				static_cast<System::Int32>(static_cast<System::Byte>(192)));
			this->thongbao->Location = System::Drawing::Point(228, 244);
			this->thongbao->Name = L"thongbao";
			this->thongbao->Size = System::Drawing::Size(476, 28);
			this->thongbao->TabIndex = 13;
			this->thongbao->Text = L"Chúc mừng bạn đã được lên cấp! ^_^";
			this->thongbao->Visible = false;
			// 
			// timer1
			// 
			this->timer1->Enabled = true;
			this->timer1->Tick += gcnew System::EventHandler(this, &Form3::Form3_Load);
			// 
			// DongHo
			// 
			this->DongHo->AutoSize = true;
			this->DongHo->BackColor = System::Drawing::Color::Transparent;
			this->DongHo->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 18, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(163)));
			this->DongHo->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(192)), static_cast<System::Int32>(static_cast<System::Byte>(0)), 
				static_cast<System::Int32>(static_cast<System::Byte>(0)));
			this->DongHo->Location = System::Drawing::Point(12, 494);
			this->DongHo->Name = L"DongHo";
			this->DongHo->Size = System::Drawing::Size(45, 29);
			this->DongHo->TabIndex = 14;
			this->DongHo->Text = L"0:0";
			// 
			// timer2
			// 
			this->timer2->Enabled = true;
			this->timer2->Interval = 1000;
			this->timer2->Tick += gcnew System::EventHandler(this, &Form3::timer2_Tick);
			// 
			// Dung
			// 
			this->Dung->BackColor = System::Drawing::Color::Transparent;
			this->Dung->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"Dung.Image")));
			this->Dung->Location = System::Drawing::Point(891, 12);
			this->Dung->Name = L"Dung";
			this->Dung->Size = System::Drawing::Size(53, 50);
			this->Dung->TabIndex = 15;
			this->Dung->TabStop = false;
			this->Dung->Click += gcnew System::EventHandler(this, &Form3::Dung_Click);
			// 
			// Tiep
			// 
			this->Tiep->BackColor = System::Drawing::Color::Transparent;
			this->Tiep->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"Tiep.Image")));
			this->Tiep->Location = System::Drawing::Point(891, 68);
			this->Tiep->Name = L"Tiep";
			this->Tiep->Size = System::Drawing::Size(54, 50);
			this->Tiep->TabIndex = 16;
			this->Tiep->TabStop = false;
			this->Tiep->Click += gcnew System::EventHandler(this, &Form3::Tiep_Click);
			// 
			// Thoat
			// 
			this->Thoat->BackColor = System::Drawing::Color::Transparent;
			this->Thoat->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"Thoat.Image")));
			this->Thoat->Location = System::Drawing::Point(891, 124);
			this->Thoat->Name = L"Thoat";
			this->Thoat->Size = System::Drawing::Size(54, 50);
			this->Thoat->TabIndex = 17;
			this->Thoat->TabStop = false;
			this->Thoat->Click += gcnew System::EventHandler(this, &Form3::Thoat_Click);
			// 
			// axWindowsMediaPlayer1
			// 
			this->axWindowsMediaPlayer1->Enabled = true;
			this->axWindowsMediaPlayer1->Location = System::Drawing::Point(779, 508);
			this->axWindowsMediaPlayer1->Name = L"axWindowsMediaPlayer1";
			this->axWindowsMediaPlayer1->OcxState = (cli::safe_cast<System::Windows::Forms::AxHost::State^  >(resources->GetObject(L"axWindowsMediaPlayer1.OcxState")));
			this->axWindowsMediaPlayer1->Size = System::Drawing::Size(183, 30);
			this->axWindowsMediaPlayer1->TabIndex = 18;
			// 
			// Form3
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"$this.BackgroundImage")));
			this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
			this->ClientSize = System::Drawing::Size(957, 532);
			this->Controls->Add(this->axWindowsMediaPlayer1);
			this->Controls->Add(this->Thoat);
			this->Controls->Add(this->Tiep);
			this->Controls->Add(this->Dung);
			this->Controls->Add(this->DongHo);
			this->Controls->Add(this->thongbao);
			this->Controls->Add(this->ro);
			this->Controls->Add(this->phan3);
			this->Controls->Add(this->phan2);
			this->Controls->Add(this->phan1);
			this->Controls->Add(this->trung3);
			this->Controls->Add(this->trung2);
			this->Controls->Add(this->trung1);
			this->Controls->Add(this->vit2);
			this->Controls->Add(this->ngan1);
			this->Controls->Add(this->vit1);
			this->Controls->Add(this->ga1);
			this->Controls->Add(this->ngan2);
			this->Controls->Add(this->ga2);
			this->DoubleBuffered = true;
			this->Name = L"Form3";
			this->Text = L"Form3";
			this->Load += gcnew System::EventHandler(this, &Form3::Form3_Load);
			this->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &Form3::Form3_KeyDown);
			this->MouseMove += gcnew System::Windows::Forms::MouseEventHandler(this, &Form3::Form3_MouseMove);
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ga2))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ngan2))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ga1))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->vit1))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ngan1))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->vit2))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trung1))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trung2))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trung3))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->phan1))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->phan2))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->phan3))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ro))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Dung))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Tiep))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Thoat))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->axWindowsMediaPlayer1))->EndInit();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	private: System::Void Form3_Load(System::Object^  sender, System::EventArgs^  e){
				int j, count, count2;
					 count = count2 = 0;  j = 10;
					 giay = phut = 0;
			Random^ rand= gcnew Random;
			 int i = rand->Next(1,6);
			 switch(i)
			 {
			 case 1:
						trung1 -> Visible = true;
						 trung1 -> Top = (trung1 -> Top) +j;
						 if(trung1 -> Top >= 443){
							 trung1 -> Visible = false;
							 trung1 -> Top = 93;
						 }


			 case 2:
						trung2 -> Visible = true;
						 trung2 -> Top = (trung2 -> Top) +j;
						 if(trung2 -> Top >= 443){
							 trung2 -> Visible = false;
							 trung2 -> Top = 93;
						 }
			 case 3:
						trung3 -> Visible = true;
						 trung3 -> Top = (trung3 -> Top) +j;
						 if(trung3 -> Top >= 443){
							 trung3 -> Visible = false;
							 trung3 -> Top = 93;
						 }
			 case 4:
						phan1 -> Visible = true;
						 phan1 -> Top = (phan1 -> Top) +j;
						 if(phan1 -> Top >= 443){
							 phan1 -> Visible = false;
							 phan1 -> Top = 93;
						 }
			 case 5:
						phan2 -> Visible = true;
						 phan2 -> Top = (phan2 -> Top) +j;
						 if(phan2 -> Top >= 443){
							 phan2 -> Visible = false;
							 phan2 -> Top = 93;
						 }
			 case 6:
						phan3 -> Visible = true;
						 phan3 -> Top = (phan3 -> Top) +j;
						 if(phan3 -> Top >= 443){
							 phan3 -> Visible = false;
							 phan3 -> Top = 93;
						 }

			 }

			ga1 -> Visible = true;
			ga1 -> Left = ga1 -> Left -5;
			 if(ga1 -> Left <= 220){
				 ga1 -> Visible = false;
				 ga1 -> Left = 350;
			 }
			 
			 vit1 -> Visible = true;
			 vit1 -> Left = vit1 -> Left -5;
			 if(vit1 -> Left <= 300){
				 vit1 -> Visible = false;
				 vit1 -> Left = 520;
			 }
			 
			 ngan1 -> Visible = true;
			 ngan1 -> Left = ngan1 -> Left +5;
			 if(ngan1 -> Left >= 660){
				 ngan1 -> Visible = false;
				 ngan1 -> Left = 557;
			 }
			 
			 if((trung1 -> Left == ro -> Left) || (trung2 -> Left == ro -> Left) || (trung3 -> Left == ro -> Left)){
				 count++;
			 }
			 if((trung1 -> Left != ro -> Left) || (trung2 -> Left != ro -> Left ) || (trung3 -> Left != ro -> Left) || (phan1 -> Left == ro -> Left) || (phan2 -> Left == ro -> Left) || (phan3 -> Left == ro -> Left))
			 {
				 count2++;
			 }
			 if(count2 == 3)
			 {
				 Form4^ f4 = gcnew Form4();
				 f4 -> Show();
			 }
			 if(count == 20)
			 {
				 thongbao -> Visible = true;
				 j = j + 1;
				 thongbao -> Visible = false;
				 count = 0;
			 }
}


private: System::Void Form3_KeyDown(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) {
			 switch(e -> KeyValue)
			 {
			 case 'G':
				 ga2 -> Visible = true;
				 break;
			 case 'V':
				 vit2 -> Visible = true;
				 break;
			 case 'N':
				 ngan2 -> Visible = true;
				 break;
			  }

			  if (e -> KeyCode == Keys::Left)
				 ro -> Left = (ro -> Left) - 5;
			  if( e -> KeyCode == Keys::Right)
				 ro -> Left = (ro -> Left) + 5;
		 }

private: System::Void Form3_MouseMove(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
			ro -> Location = Point(e -> X, 443);
			 }

private: System::Void timer2_Tick(System::Object^  sender, System::EventArgs^  e) {
			  giay++;
			 if(giay == 60){
				  phut++;
				  giay = 0;
			 }
			 gi = Convert::ToString(giay);
			 ph = Convert::ToString(phut);
			 this -> DongHo -> Text = ph + ":" + gi;
			 //this -> timer1 -> Enabled = true;
			  //this -> timer2 -> Enabled = false;
		 }
		  
private: System::Void Dung_Click(System::Object^  sender, System::EventArgs^  e) {
			 this -> timer1 -> Enabled = false;
		 }
private: System::Void Tiep_Click(System::Object^  sender, System::EventArgs^  e) {
			 this -> timer1 -> Enabled = true;
		 }
private: System::Void Thoat_Click(System::Object^  sender, System::EventArgs^  e) {
			 Application::Exit();
		 }
};
}
